import { All, Controller, HttpStatus, Query, Req, Res } from "@nestjs/common";
import { apibefore } from "src/router";
import { createHash, createDecipheriv } from 'crypto'
import path, { join } from "path";
import { createReadStream } from "fs";

@Controller('/')
export class AppController {

  constructor(){

  }
  @All('/WW_verify_VEKXQHHDp2W3hS4f.txt')
  WW_verify_VEKXQHHDp2W3hS4f(@Res() res){
    const filePath = join(__dirname, '.', 'WW_verify_VEKXQHHDp2W3hS4f.txt');
    res.status(HttpStatus.OK);
    res.setHeader('Content-Disposition', 'attachment; filename="WW_verify_VEKXQHHDp2W3hS4f.txt"');
    createReadStream(filePath).pipe(res);
  }
}